﻿<%@ Page Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="ApproveRejectItemAdjustment.aspx.cs" Inherits="PresentationLayer.View.StoreManager.ApproveRejectItemAdjustment" %>


<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;">
            <uc1:mainMenu ID="mainMenu1" runat="server" />
        </td>
        <td>


     <div style="vertical-align:top;">
    
    <center><h2><u>Stationery Adjustment List</u></h2></center>
        <asp:GridView ID="gvAdjustmentList" runat="server" AllowPaging="True" 
            CellPadding="4" ForeColor="#333333" GridLines="None" 
            AutoGenerateColumns="False" PageSize="5" Width="587px" 
            onrowcommand="gvAdjustmentList_RowCommand" 
            EmptyDataText="No Item Adjustment Available">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="No">
                    <ItemTemplate>
                        <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="VoucherNo">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# "VO/"+Eval("AdjVoucherId") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# "VO/"+Eval("AdjVoucherId") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Submit Date">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("adjDate") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("adjDate") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                    
                        <asp:Button ID="Button1" runat="server" CausesValidation="false" 
                            CommandName="ViewDetail" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                            style="height: 26px" Text="View Detail" />
                        <asp:HiddenField ID="hdn_vid" runat="server" Value='<%# Eval("AdjVoucherId") %>'/>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Status">
                    <ItemTemplate>
                        <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("adjStatus") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval("adjStatus") %>'></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />

<SortedAscendingCellStyle BackColor="#F5F7FB"></SortedAscendingCellStyle>

<SortedAscendingHeaderStyle BackColor="#6D95E1"></SortedAscendingHeaderStyle>

<SortedDescendingCellStyle BackColor="#E9EBEF"></SortedDescendingCellStyle>

<SortedDescendingHeaderStyle BackColor="#4870BE"></SortedDescendingHeaderStyle>
        </asp:GridView>
    
        <br />
        <br />
        <asp:Panel ID="detailPanel" runat="server" Visible="False">
            <h3>View Detail</h3>
           
            <asp:GridView ID="gv_ViewDetail" runat="server" CellPadding="4" 
        ForeColor="#333333" GridLines="None" AllowPaging="True" Width="413px">
                <AlternatingRowStyle BackColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
            <br />

            <asp:Panel ID="statusPanel" runat="server">
                     
                    <asp:RadioButton ID="rdApprove" runat="server" AutoPostBack="True" 
                        GroupName="Status" Text="Approve" />
                    <asp:RadioButton ID="rdReject" runat="server" AutoPostBack="True" 
                        GroupName="Status" Text="Reject" />
                    <asp:Panel ID="remarkPanel" runat="server" Visible="False" Width="349px">
                    <table><tr>
                        <td style="vertical-align:middle;">Remark : </td>
                        <td> <asp:TextBox ID="txtremark" runat="server" Height="78px" Width="242px"></asp:TextBox>
                        </td>
                    </tr></table>
                                        </asp:Panel>
                    <br />
                <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" 
                    Text="Submit" />
                     <asp:HiddenField ID="hdnVId" runat="server" />

                    <br />

            </asp:Panel>
           
        </asp:Panel>
                  
    
    </div>
    <p>
    <asp:Label ID="Label3" runat="server" Text=""></asp:Label>
    </p>
            <p>
                &nbsp;</p>
            <p>
                &nbsp;</p>
            <p>
                &nbsp;</p>
            <p>
                &nbsp;</p>
            <p>
                &nbsp;</p>
            <p>
                &nbsp;</p>
            <p>
                &nbsp;</p>
            <p>
                &nbsp;</p>
 
            </td> </tr></table>
</asp:Content>


